package menber1;
import java.util.Random;
public class Tiger {
    Random r=new Random();
    int r1= r.nextInt(3);
    private String id="202112020001";
    private String name="东北虎";
    private String color="黄色";
    private String weigh="150kg";
    private String from="东北";
    private String heart;
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getWeigh() {
        return weigh;
    }

    public void setWeigh(String weigh) {
        this.weigh = weigh;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public void setHeart() {
        switch(r1)
        {
            case 0:this.heart="开心";
                break;
            case 1:this.heart="沮丧";
                break;
            case 2:this.heart="普通";
                break;
        }
    }
    public void show()
    {
        setHeart();
        System.out.println("id:"+id);
        System.out.println("名称:"+name);
        System.out.println("颜色:"+color);
        System.out.println("体重:"+weigh);
        System.out.println("生源地:"+from);
        System.out.println("心情:"+heart);
    }
}
